package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.Result;
import com.itheima.pojo.User;

import java.text.ParseException;
import java.util.List;

public interface UserService {
    User findByUsername(String username);


    void deleteById(Integer id);


    List<User> findAll();

    void add(Integer[] roleIds, User user) throws Exception;

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void edit(Integer[] roleIds, User user) throws ParseException;


    User checkUsername(String username);
}
